﻿<script type="text/template" id="list-item-template">
    <td class="text-center">
        <%= model.Order %>
    </td>
    <td> 
        <%= model.Name %>
    </td>
    <td>
        <%= model.Attachment%>
    </td>
    <td>
        <%= model.AttachmentName %>
    </td
    <td>
        <%= model.Description%>
    </td>
    <td>
       <input type="checkbox"  <%= model.IsActive == true ? 'checked="checked"' : '' %> name = "IsActive" class="cbxIsActive" />
    </td>
     <td>
       <input type="checkbox"  <%= model.IsSubmission == true ? 'checked="checked"' : '' %> name = "IsSubmission" class="cbxIsSubmission" />
    </td>
    <td>
        <a href="javascript:void(0)" class="grid-update"><%= jsResources.lang.GridEdit %></a>    
    </td>
    <td>
         <a href="javascript:void(0)" class="grid-delete"><%= jsResources.lang.GridDelete %></a>               
    </td>
</script>
<script type="text/template" id="library-form-template">
    <form id="library-form" onsubmit="return false;">
        <ul class="idata-form">
            <li>
               <span class="idata-form-title">
                    <%= jsResources.lang.ManageLibrary_Name %>    
                </span>
                <span>
                 <input class="name" type="text" size="40" name="Name" id="Name" required value="<%= model.Name %>"> 
                 </span>
            </li>
            <li>  
                <span class="idata-form-title">
                    <%= jsResources.lang.ManageLibrary_Description %>    
                </span>        
                <span>
                 <textarea class="description" size="40" name="Description" id="Description" required value="<%= model.Description %>" ></textarea> 
                 </span>
            </li>
            <li>
                <span class="idata-form-title">
                    <%= jsResources.lang.ManageLibrary_Attachment %>    
                </span> 
                <span>
                <input type="file" id="upload-button"/>
                </span>
            </li>        
            <li>
                <span class="idata-form-title">
                    <%= jsResources.lang.ManageLibrary_Active %>    
                </span> 
                <input type="checkbox" name = "IsActive" id="IsActive" <%= model.IsActive == true ? 'checked="checked"' : '' %> />
            </li>
            <li>
                 <span class="idata-form-title">
                    <%= jsResources.lang.ManageLibrary_IsSubmission %>    
                </span> 
                <span>
                 <input type="checkbox" name = "IsSubmission" id="IsSubmission" <%= model.IsSubmission == true ? 'checked="checked"' : '' %> />
                 </span>
            </li>
        </ul>
    </form>
</script>
